/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.blog.city.checkthedep.sessionbeans;

import com.blog.city.checkthedep.entities.RegisteredUser;
import java.util.List;
import javax.ejb.Local;

/**
 *
 * @author Breath
 */
@Local
public interface RegisteredUserFacadeLocal {

    /**
     * 
     * @param registeredUser
     */
    void create(RegisteredUser registeredUser);

    /**
     * 
     * @param registeredUser
     */
    void edit(RegisteredUser registeredUser);

    /**
     * 
     * @param registeredUser
     */
    void remove(RegisteredUser registeredUser);

    /**
     * 
     * @param id
     * @return
     */
    RegisteredUser find(Object id);

    /**
     * 
     * @return
     */
    List<RegisteredUser> findAll();

    /**
     * 
     * @param range
     * @return
     */
    List<RegisteredUser> findRange(int[] range);

    /**
     * 
     * @return
     */
    int count();
    
    /**
     * 
     * @param username
     * @return
     */
    public com.blog.city.checkthedep.entities.RegisteredUser findRegUserByUsername(java.lang.String username);

    /**
     * 
     * @param author
     * @return
     */
    public java.util.List<com.blog.city.checkthedep.entities.Article> findArticleByAuthorNotUsed(com.blog.city.checkthedep.entities.RegisteredUser author);

    /**
     * 
     * @param author
     * @return
     */
    public java.util.List<com.blog.city.checkthedep.entities.Comment> findCommentsByAuthorNotUsed(com.blog.city.checkthedep.entities.RegisteredUser author);
    
}
